﻿<controls:ChildWindow xmlns:my="clr-namespace:VAdvantage.Controls"  x:Class="VAdvantage.Framework.EnterNewLocationORAddress"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Title="EnterNewLocationORAddress">
    <Grid x:Name="LayoutRoot" Margin="5" >
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0" Name="gridSearch" Margin="2,5,2,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
           
        </Grid>
        <Grid x:Name="LayoutContent" Margin="2,2,0,5" Grid.Row="1" Grid.RowSpan="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="5"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="5"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="5"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="5"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>

            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition MinHeight="2"></RowDefinition>
                <RowDefinition MinHeight="2"></RowDefinition>
                <RowDefinition MinHeight="2"></RowDefinition>
                <RowDefinition MinHeight="2"></RowDefinition>
                <RowDefinition MinHeight="2"></RowDefinition>
                <RowDefinition MinHeight="2"></RowDefinition>
                <RowDefinition MinHeight="2"></RowDefinition>
                <RowDefinition MinHeight="2"></RowDefinition>
                <RowDefinition MinHeight="2"></RowDefinition>
                <RowDefinition MinHeight="2" ></RowDefinition>
            </Grid.RowDefinitions>

            <my:VLabel x:Name="vlblSearchCountry" Content="Country"  Grid.Column="1"  Margin="0,0,2,2" HorizontalAlignment="Left" />
            <my:VComboBox x:Name="vcmbSearchCountry" Grid.Column="3" MinWidth="125" Margin="0,0,2,2" HorizontalAlignment="Stretch" ></my:VComboBox>
            <my:VLabel x:Name="vlblSearchZipCode" Content="ZipCode" Grid.Column="5" />
            <my:VTextBox x:Name="vtxtSearchZip" Grid.Column="7" MinWidth="125" Margin="2,0,0,2" HorizontalAlignment="Stretch" KeyDown="vtxtSearchZip_KeyDown"/>



            <my:VLabel x:Name="lblAdd1" Grid.Row="1" Grid.Column="1" Content="label1"  VerticalAlignment="Center" Width="Auto" HorizontalAlignment="Left"></my:VLabel>
            <my:VLabel x:Name="lblAdd2" Grid.Row="2" Grid.Column="1" Content="label2"  VerticalAlignment="Center" Width="Auto" HorizontalAlignment="Left"></my:VLabel>
            <my:VLabel x:Name="lblAdd3" Grid.Row="3" Grid.Column="1" Content="label3" VerticalAlignment="Center" Width="Auto" HorizontalAlignment="Left"></my:VLabel>
            <my:VLabel x:Name="lblAdd4" Grid.Row="4" Grid.Column="1" Content="label4"  VerticalAlignment="Center" Width="Auto" HorizontalAlignment="Left"></my:VLabel>
            <my:VLabel x:Name="lblPostalAdd"  Grid.Row="5" Grid.Column="1" Content="label8"  VerticalAlignment="Center" Width="Auto" HorizontalAlignment="Left"></my:VLabel>
            <my:VLabel x:Name="lblState" Grid.Row="6" Grid.Column="1" Content="label6"  VerticalAlignment="Center" Width="Auto" HorizontalAlignment="Left"></my:VLabel>
            <my:VLabel x:Name="lblCity" Grid.Row="7" Grid.Column="1" Content="label5"  VerticalAlignment="Center" Width="Auto" HorizontalAlignment="Left"></my:VLabel>

            <my:VLabel x:Name="lblZip" Grid.Row="8" Grid.Column="1" Content="label7"  VerticalAlignment="Center" Width="Auto" HorizontalAlignment="Left"></my:VLabel>

            <my:VLabel x:Name="lblCountry" Grid.Row="9" Grid.Column="1" Content="label9"  VerticalAlignment="Center" Width="Auto" HorizontalAlignment="Left"></my:VLabel>
            <my:VTextBox x:Name="txtAdd1" Grid.Column="3" Grid.ColumnSpan="5"  Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Stretch" Width="Auto" MinWidth="300" Margin="0,3" />
            <my:VTextBox x:Name="txtAdd2" Grid.Row="2" Grid.ColumnSpan="5" Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Stretch" MinWidth="300" Width="Auto" Margin="0,4"  />
            <my:VTextBox x:Name="txtAdd3" Grid.Row="3" Grid.ColumnSpan="5" Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Stretch" Width="Auto" MinWidth="300" Margin="0,3" />
            <my:VTextBox x:Name="txtAdd4" Grid.Row="4" Grid.ColumnSpan="5" Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Stretch" Width="Auto" Margin="0,4" MinWidth="300"/>
            <my:VTextBox x:Name="txtPostalAdd" Grid.Row="5" Grid.ColumnSpan="5" Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Stretch" Width="Auto" Margin="0,3" MinWidth="300" />
            <my:VComboBox  Grid.Row="6" Grid.Column="3" Grid.ColumnSpan="5" HorizontalAlignment="Stretch" x:Name="vcmbState" VerticalAlignment="Center" Width="Auto" Margin="0,4" MinWidth="300" />
            <my:VTextBox x:Name="txtCity" Grid.Row="7" Grid.ColumnSpan="5" Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Stretch" Width="Auto" Margin="0,3" MinWidth="300" />
            <my:VTextBox x:Name="txtZip" Grid.Row="8" Grid.ColumnSpan="5" Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Stretch" Width="Auto" Margin="0,4" MinWidth="300" />
            <my:VComboBox Grid.Column="3" Grid.Row="9" Grid.ColumnSpan="5"  HorizontalAlignment="Stretch"  x:Name="vcmbCountry" VerticalAlignment="Center" Width="Auto" Margin="0,4" MinWidth="300" SelectionChanged="vcmbCountry_SelectionChanged" />
        </Grid>

        <Button x:Name="CancelButton" Click="CancelButton_Click" Width="35" Height="35" HorizontalAlignment="Right" Margin="0,0,37,0" Grid.Row="2" >
            <Image Source="/VAdvantage;component/Images/cancel_up.png" Stretch="Fill"></Image>
        </Button>
        <Button x:Name="OKButton" Click="OKButton_Click" Width="35" Height="35" HorizontalAlignment="Right" Margin="0,0,0,0" Grid.Row="2" >
            <Image Source="/VAdvantage;component/Images/right_up.png" Stretch="Fill"></Image>
        </Button>
    </Grid>
</controls:ChildWindow>